package com.subtlman.logframework.controller;

import com.subtlman.logframework.aop.AuditLog;
import com.subtlman.logframework.entity.Users;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Create: IntelliJ IDEA.
 * @Author: subtlman_ljx
 * @Date: 2022/11/29/15:30
 * @Description:
 */
@RestController
@RequestMapping("/api")
public class T11 {

    @AuditLog
    @PostMapping("/post")
    public String t1(Users u){
        System.out.println(u);
        return u.toString();
    }
}
